package com.redpig.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 用户-角色 实体类
 *
 * @author zqd
 *
 * @date 2023-07-06 14:59:21
 */
@Data
@TableName(value = "redpig_sys_user_role")
@ApiModel(description = "用户-角色")
public class UserRole{

    /** 用户主键ID **/
    @ApiModelProperty(value = "用户主键ID", position = 1)
    @TableField(value = "user_id")
    private Long userId;

    /** 角色主键ID **/
    @ApiModelProperty(value = "角色主键ID", position = 2)
    @TableField(value = "role_id")
    private Long roleId;

}
